# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=stow
pkgver=2.4.0
pkgrel=1
pkgdesc="Manage installation of multiple softwares in the same directory tree"
url="https://www.gnu.org/software/stow/"
arch="noarch"
license="GPL-3.0-or-later"
depends="perl"
checkdepends="perl-test-output"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/stow/stow-$pkgver.tar.bz2"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-pmdir=/usr/share/perl5/vendor_perl
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/share/doc/stow/manual.pdf
	rm "$pkgdir"/usr/share/doc/stow/version.texi
}

sha512sums="
c479a0ba5d6af9a2a4860f4bf4095dbd586794e781766c22e6cda657bbf984915f4661e03825db02a300412aa49305e06b8107ffc96077bd64ba4e7a1eb27314  stow-2.4.0.tar.bz2
"
